home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Unreal Tournament Game Programming for Teens
/
UnrealTournamentGameProgrammingForTeens.iso
/
Chapter Files
/
Chapter06
/
CorrectedMultiply.txt
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2006-10-15
|
457 b
|
16 lines
public function float Multiply(float NumA, float Numb){
// #2 Declare a variable that is not
// visible to other functions
local float Result;
Result = 1;
return NumA * NumB;
}
public function float DivideAbyB(float NumA, float Numb){
// #2 Declare a variable that is not
// visible to other functions
local float Result;
Result = 0;
//Code left out
}